home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / jam / jamdisk7 / doc9110b.lzh / ld.man < prev    next >
Text File  |  1991-10-12  |  2KB  |  56 lines

  1. LD
  2. ==
  3.  
  4. Linker. This is a very abbreviated manual entry.
  5.  
  6. Usage: ld [-d] [-dc] [-dp] [-e symbol] [-l lib] [-n] [-noinhibit-exec]
  7.        [-nostdlib] [-o file] [-r] [-s] [-t] [-u symbol] [-x] [-y symbol]
  8.        [-z] [-A file] [-Bstatic] [-D size] [-L libdir] [-M] [-N]
  9.        [-S] [-T[{text,data}] addr] [-V prefix] [-X]
  10.        [{-a,-amiga-syms-only}] [file...]
  11.  
  12. Options:
  13. -d                      [Don't use]
  14. -dc                     [Don't use]
  15. -dp                     [Don't use]
  16. -e symbol               'symbol' is the entrypoint of the loaded
  17.                         program.
  18. -l x                    Is an abbreviation for the library file
  19.                         libx.a, searched for in any directories
  20.                         specified with -L and then in the standard
  21.                         location (gcc:lib).
  22. -n                      [Don't use]
  23. -noinhibit-exec         Generate an executable even if errors occur.
  24. -nostdlib               Do not use the standard location for library
  25.                         files.
  26. -o file                 The output is to 'file' rather than 'a.out'.
  27. -r                      [Don't use]
  28. -s                      Strip the symbol table from the output.
  29. -t                      Display the name of each file as it is
  30.                         processed.
  31. -u symbol               Enter 'symbol' as undefined (ie, required).
  32.                         Makes it possible to load just from a library.
  33. -x                      preserve only global symbols.
  34. -y symbol               Display each file in which 'symbol' appears.
  35. -z                      [Don't use]
  36. -A file                 [Don't use]
  37. -Bstatic                [Don't use]
  38. -D size                 [Don't use]
  39. -L libdir               Add 'libdir' to the front of the standard
  40.                         locations searched for '-l' files.
  41. -M                      Produce a simple link map.
  42. -N                      [Don't use]
  43. -S                      Remove all symbols except locals and globals.
  44. -T[{text,data}] addr    [Don't use]
  45. -V prefix               [Something to do with Sets -watch this space]
  46. -X                      Discard local symbols.
  47. {-a,-amiga-syms-only}   [Errm - I can't tell what this does!]
  48.  
  49. Point to watch: LD processes each input as it comes, and won't go back
  50. to extract anything it finds it needs later. So, you have to be a
  51. little careful about the order of input.
  52.  
  53. The entry point is the first file linked, so a typical command line is
  54.  
  55.     > ld -o foo -s gcc:lib/arpc.o foo.o -l pdc -l amiga
  56.